package com.ems.mapper;

import com.ems.entity.PcsAlarmBitEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ems.vo.PcsAlarmBitVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * PCS故障字 Mapper 接口
 * </p>
 *
 * @author WuZH
 * @since 2024-04-23
 */
@Mapper
public interface PcsAlarmBitMapper extends BaseMapper<PcsAlarmBitEntity> {

    @Select ( value = "SELECT * FROM pcs_alarm_bit_info pabi where pabi.deviceAddress=#{pcsAlarmBitVo.deviceAddress} order by pabi.createTime desc limit 8 " )
    List<PcsAlarmBitVo> queryList ( @Param ( "pcsAlarmBitVo" ) PcsAlarmBitVo pcsAlarmBitVo );

}
